package edu.ntu.im.p2ptrade.msg;

import net.jxta.endpoint.Message;
import net.jxta.endpoint.StringMessageElement;
import edu.ntu.im.p2ptrade.P2PTrade;

public class GrantLock extends ControlMsg{
	
	
	
	public GrantLock (String transactionId){
		this.transactionId = transactionId;
	}
	
	

	@Override
	public void attachType(Message msg) {
		msg.addMessageElement(P2PTrade.getInstance().getAppName(), new StringMessageElement(TYPE,GrantLock.class.getSimpleName(), null));
	}



	public String toLogMessage() {
		return null;
	}
	
}
